package com.example.consumer.feign;

import com.example.consumer.domain.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Date: 2024/11/19
 * @Author: Administrator
 * @ClassName: GoodsFeign
 * @Description: comment here
 */

@FeignClient(name = "eureka-provider")
public interface GoodsFeign {
    @RequestMapping("/goods/{id}")
    Goods addGoods(@PathVariable("id") Integer id);
}
